/**
 * 
 */
package org.xlab.baseframework.test.platform.service.impl;

import java.util.List;

import org.xlab.baseframework.exception.ObjectNotFoundException;
import org.xlab.baseframework.test.platform.dao.api.ISystemSessionDAO;
import org.xlab.baseframework.test.platform.domain.SystemSession;
import org.xlab.baseframework.test.platform.service.api.ISystemSessionService;

/**
 * @author makubex
 *
 */
public class SystemSessionServiceImpl implements ISystemSessionService {

	private ISystemSessionDAO systemSessionDAO;
	
	/**
	 * @see org.xlab.baseframework.test.platform.service.api.ISystemSessionService#findAllByExample(org.xlab.baseframework.test.platform.domain.SystemSession)
	 */
	public List<SystemSession> findAllByExample(SystemSession exampleInstance)
			throws ObjectNotFoundException {
		return systemSessionDAO.findAllByExample(exampleInstance);
	}

	/**
	 * @see org.xlab.baseframework.test.platform.service.api.ISystemSessionService#findAllByProperty(java.lang.String, java.lang.Object)
	 */
	public List<SystemSession> findAllByProperty(String propertyName,
			Object value) throws ObjectNotFoundException {
		return systemSessionDAO.findAllByProperty(propertyName, value);
	}

	/**
	 * @return the systemSessionDAO
	 */
	public ISystemSessionDAO getSystemSessionDAO() {
		return systemSessionDAO;
	}

	/**
	 * @see org.xlab.baseframework.test.platform.service.api.ISystemSessionService#save(org.xlab.baseframework.test.platform.domain.SystemSession)
	 */
	public void save(SystemSession session) {
		systemSessionDAO.save(session);
	}

	/**
	 * @param systemSessionDAO the systemSessionDAO to set
	 */
	public void setSystemSessionDAO(ISystemSessionDAO systemSessionDAO) {
		this.systemSessionDAO = systemSessionDAO;
	}

	/**
	 * @see org.xlab.baseframework.test.platform.service.api.ISystemSessionService#update(org.xlab.baseframework.test.platform.domain.SystemSession)
	 */
	public void update(SystemSession session) {
		systemSessionDAO.update(session);
	}

}
